import request from "@/utils/request";

export function listPages() {
    return request({
        url:'/admin/pages',
        method:'get'
    })
}

export function saveOrUpdatePage(data) {
    return request({
        url:'/admin/pages',
        method:'post',
        data:data
    })
}

export function deletePage(id) {
    return request({
        url:'/admin/pages/' + id,
        method:'delete'
    })
}
